$OpenBSD: patch-part_view_kateviewhelpers_cpp,v 1.1 2017/05/23 17:55:52 espie Exp $

Index: part/view/kateviewhelpers.cpp
--- part/view/kateviewhelpers.cpp.orig
+++ part/view/kateviewhelpers.cpp
@@ -1703,7 +1703,7 @@ void KateIconBorder::paintBorder (int /*x*/, int y, in
       if (realLine > -1) {
         if (m_viewInternal->cache()->viewLine(z).startCol() == 0) {
           if (m_viRelLineNumbersOn && m_view->viInputMode()) {
-            int diff = abs(realLine - currentLine);
+            int diff = abs(realLine - int(currentLine));
             if (diff > 0) {
               p.drawText( lnX + m_maxCharWidth / 2, y, lnWidth - m_maxCharWidth, h,
                           Qt::TextDontClip|Qt::AlignRight|Qt::AlignVCenter, QString("%1").arg(diff) );
